<?php
/**
 * 匿名管理
 * Created by deng.
 * User: deng
 * Date: 2016/11/15
 * Time: 17:00
 */
class PinkSubscription extends AdminBase{

    protected $do;

    function __construct(){
        parent::__construct();
        $this->do = 'subscriptionManage';
        $this->{$this->op}();
    }

    function indexAction(){
        include_once template("admin_v2/subscription");
        exit();
    }

    function subreadyAction(){
        include_once template("admin_v2/subscription_ready");
        exit();
    }

    function onlineAction(){
        include_once template("admin_v2/subscription_online");
        exit();
    }

    function listAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'list',
        ], $this->req));
    }

    function addAllreadyAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'AddAllready',
        ], $this->req));
    }

    function readyListAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'readyList',
        ], $this->req));
    }

    function updateReadyAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'updateReady',
        ], $this->req));
    }

    function deleteReadyAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'deleteReady',
        ], $this->req));
    }

    function delAllReadyAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'delAllReady',
        ], $this->req));
    }

    function onlineListAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'onlineList',
        ], $this->req));
    }

    function deleteOnlineAction(){
        $this->fetchData(array_merge([
            'do'     => $this->do,
            'format' => 'json',
            'operate' => 'deleteOnline',
        ], $this->req));
    }

}

new PinkSubscription;